package com.jhgsys.internal.incentive.service;

import com.jhgsys.internal.common.exception.FebsException;
import com.jhgsys.internal.incentive.dto.IncentiveQuotaConfigDto;
import com.jhgsys.internal.incentive.entity.IncentiveQuotaConfig;
import com.jhgsys.internal.common.entity.QueryRequest;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jhgsys.internal.incentive.entity.IncentiveRewarded;

import java.util.List;

/**
 * 开单人额度设置 Service接口
 *
 * @author zhangwei
 * @date 2024-08-30 09:28:03
 */
public interface IIncentiveQuotaConfigService extends IService<IncentiveQuotaConfig> {
    /**
     * 查询（分页）
     * @author zhangwei
     * @date 2024-08-30 09:28:03
     * @param request QueryRequest
     * @param incentiveQuotaConfig incentiveQuotaConfig
     * @return IPage<IncentiveQuotaConfig>
     */
    IPage<IncentiveQuotaConfig> findIncentiveQuotaConfigPage(QueryRequest request, IncentiveQuotaConfig incentiveQuotaConfig);

    /**
     * 查询（所有）
     * @author zhangwei
     * @date 2024-08-30 09:28:03
     * @param incentiveQuotaConfig incentiveQuotaConfig
     * @return List<IncentiveQuotaConfig>
     */
    List<IncentiveQuotaConfig> findIncentiveQuotaConfigList(IncentiveQuotaConfig incentiveQuotaConfig);

    /**
     * 查询（单挑）
     * @author zhangwei
     * @date 2024-08-30 09:28:03
     * @param incentiveQuotaConfig incentiveQuotaConfig
     * @return List<IncentiveQuotaConfig>
     */
    IncentiveQuotaConfig findIncentiveQuotaConfig(IncentiveQuotaConfig incentiveQuotaConfig);

    /**
    * 根据ID查询
    * @author zhangwei
    * @date 2024-08-30 09:28:03
    * @param id
    * @return IncentiveQuotaConfig
    */
    IncentiveQuotaConfigDto findIncentiveQuotaConfigById(String id);

    /**
     * 根据userId查询
     * @author zhangwei
     * @date 2024-08-30 09:28:03
     * @param userId
     * @return IncentiveQuotaConfig
     */
    IncentiveQuotaConfigDto findIncentiveQuotaConfigByUserId(String userId);

    /**
     * 新增
     * @author zhangwei
     * @date 2024-08-30 09:28:03
     * @param incentiveQuotaConfigDto incentiveQuotaConfigDto
     */
    void createIncentiveQuotaConfig(IncentiveQuotaConfigDto incentiveQuotaConfigDto);

    /**
     * 修改
     * @author zhangwei
     * @date 2024-08-30 09:28:03
     * @param incentiveQuotaConfigDto incentiveQuotaConfigDto
     */
    void updateIncentiveQuotaConfig(IncentiveQuotaConfigDto incentiveQuotaConfigDto);

    /**
     * 逻辑删除
     * @author zhangwei
     * @date 2024-08-30 09:28:03
     * @param incentiveQuotaConfig incentiveQuotaConfig
     * @param incentiveQuotaConfigIds incentiveQuotaConfigIds
     */
    void deleteIncentiveQuotaConfig(IncentiveQuotaConfig incentiveQuotaConfig,String incentiveQuotaConfigIds);

    /**
    * 物理删除
    * @author zhangwei
    * @date 2024-08-30 09:28:03
    * @param incentiveQuotaConfigIds incentiveQuotaConfigIds
    */
    void physicallyDeleteIncentiveQuotaConfig(String incentiveQuotaConfigIds);

    /**
     * 更新已奖励额度
     * @author zhangwei
     * @date 2024-09-03 11:13:45
     */
    void updateIncentiveRewardedQuota(List<IncentiveRewarded> rewardedList) throws FebsException;
}
